//
// Created by Toosan on 2022/4/23.
//

#include "iostream"

using namespace std;

class ImageView {
private :
    int imageSize;
    friend class Class;
};

/**
 * 拓展  通过友元类去访问ImageView中的私有属性
 */
class Class {
private:
    ImageView imageView;
public:
   void changeImageViewSize(int size) {
        imageView.imageSize = size;
    }
    int getImageViewSize() const {
       return imageView.imageSize;
   }
};

int main_day10_4() {
    Class imageClass{};
    imageClass.changeImageViewSize(100);
    cout << "ImageViewSize = " << imageClass.getImageViewSize() << endl;
    return 0;
}